package com.example.photograph.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * 功能描述：
 *
 * @Author： phm
 * @Date： 2021-05-01 22:50
 */

public class StatisticsEmploymentQuery implements Serializable {

    private String schoolId;
    private String majorId;
    private String beginDate;
    private String endDate;
    private String  address;
    private String groupby;

    private String groupbyName;

    public String getGroupbyName() {
        return groupbyName;
    }

    public void setGroupbyName(String groupbyName) {
        this.groupbyName = groupbyName;
    }

    public String getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(String schoolId) {
        this.schoolId = schoolId;
    }

    public String getMajorId() {
        return majorId;
    }

    public void setMajorId(String majorId) {
        this.majorId = majorId;
    }

    public String getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(String beginDate) {
        this.beginDate = beginDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getGroupby() {
        return groupby;
    }

    public void setGroupby(String groupby) {
        this.groupby = groupby;
        if (groupby.equalsIgnoreCase("b.shcool_id")){
            this.groupbyName ="d.schoo_lName";

        }
        if (groupby.equalsIgnoreCase("b.major_id")){
            this.groupbyName ="c.major_Name";

        }
        if (groupby.equalsIgnoreCase("a.address")){
            this.groupbyName ="b.address";

        }

    }
}
